<!-- Sidebar Active Setting -->
<div id="sidebar">
    <a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard</a>
    <ul>
        <li ><a href="<?php echo site_url(); ?>"><i class="icon icon-home"></i> <span>Dashboard</span></a></li>
        <li class="submenu active open">
            <a href="#"><i class="icon icon-th-list"></i> <span>Data Soal</span></a>
            <ul>
                <li class="active"><a href="<?php echo site_url('admin_home/soal'); ?>"><i class="icon icon-th"></i> Lihat Data Soal</a></li>
                <li><a href="<?php echo site_url('admin_home/tambah_jenis'); ?>"><i class="icon icon-plus"></i> Tambah Data Soal</a></li>
            </ul>
        </li>
        <li class="submenu">
            <a href="#"><i class="icon-folder-open icon-white"></i> <span>Data Siswa</span></a>
            <ul>
                <li><a href="<?php echo site_url('admin_siswa'); ?>"><i class="icon-tasks"></i> Lihat Data Siswa</a></li>
                <li><a href="<?php echo site_url('admin_siswa/tambah'); ?>"><i class="icon-plus-sign"></i> Tambah Data Siswa</a></li>
            </ul>
        </li>
        <li>
            <a href="<?php echo site_url('admin_home/help'); ?>"><i class="icon-question-sign"></i>Help</a>
        </li>
    </ul>
</div>
<!-- Sidebar Active End -->
<div id="content">
    <div id="content-header">
        <?php
        foreach ($nama_soal->result_array() as $nm) {
            ?>
            <h1>Buat Soal <?php echo $nm['nama_jenis']; ?> </h1>
            <?php
        }
        ?> 
        <div class="btn-group">
        </div>
    </div>
    <div id="breadcrumb">
        <a href="<?php echo site_url(); ?>" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
        <a href="<?php echo site_url('admin_home/soal'); ?>" class="tip-bottom">Lihat Data Soal</a>
        <a href="<?php echo site_url('admin_soal/index/' . $param); ?>" class="tip-bottom">Isi Soal</a>
        <a href="#" class="current"><?php echo $st ?> Data Soal</a>
    </div>  

    <!-- end of breadcumb --> 
    <div class="container-fluid">
        <br/>
        <div class="alert alert-info">
            <strong>Peringatan !! </strong> File gambar yang di ijinkan gif, jpg, png, jpeg dengan ukuran maksimal 2Mb dan 800x600 pixel  
            <a href="#" data-dismiss="alert" class="close">×</a>
        </div>
        <?php echo form_open_multipart('admin_soal/simpan', 'class="form-horizontal"'); ?>
        <div class="control-group">
            <label class="control-label" for="txt_soal">Soal</label>
            <div class="controls">
                <textarea rows="7" style="width:300px;" name="txt_soal" placeholder="Soal"><?php echo $txt_soal; ?></textarea>
                <div class="fileupload fileupload-new" data-provides="fileupload">
                    <div class="fileupload-new thumbnail" style="width: 50px; height: 50px;"><img src="<?php echo base_url() . 'images/real/' . $filegambar0; ?>" /></div>
                    <div class="fileupload-preview fileupload-exists thumbnail" style="width: 50px; height: 50px;"></div>
                    <span class="btn btn-file"><span class="fileupload-new">Select image</span><span class="fileupload-exists">Change</span><input type="file" name="image1" /></span>
                    <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
                </div>
                <div id="info"></div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="jwb_a"><input type="checkbox" class="span1" name="chk_a" <?php
        if ($val_1 == '1') {
            echo'checked="checked"';
        } else {
            echo '';
        }
        ?> >A</label>
            <div class="controls">
                <input type="text" style="width:300px;" id="jwb_a" name="jwb_a" value="<?php echo $jwb_a; ?>">
                <div class="fileupload fileupload-new" data-provides="fileupload">
                    <div class="fileupload-new thumbnail" style="width: 50px; height: 50px;"><img src="<?php echo base_url() . 'images/real/' . $filegambar1; ?>" /></div>
                    <div class="fileupload-preview fileupload-exists thumbnail" style="width: 50px; height: 50px;"></div>
                    <span class="btn btn-file"><span class="fileupload-new">Select image</span><span class="fileupload-exists">Change</span><input type="file" name="image2" /></span>
                    <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
                </div>
            </div>

        </div>
        <div class="control-group">
            <label class="control-label" for="jwb_b"><input type="checkbox" class="span1" name="chk_b" <?php
                                                            if ($val_2 == '1') {
                                                                echo'checked="checked"';
                                                            } else {
                                                                echo '';
                                                            }
        ?> >B</label>
            <div class="controls">
                <input type="text" style="width:300px;" id="jwb_b" name="jwb_b" value="<?php echo $jwb_b; ?>">
                <div class="fileupload fileupload-new" data-provides="fileupload">
                    <div class="fileupload-new thumbnail" style="width: 50px; height: 50px;"><img src="<?php echo base_url() . 'images/real/' . $filegambar2; ?>" /></div>
                    <div class="fileupload-preview fileupload-exists thumbnail" style="width: 50px; height: 50px;"></div>
                    <span class="btn btn-file"><span class="fileupload-new">Select image</span><span class="fileupload-exists">Change</span><input type="file" name="image3" /></span>
                    <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="jwb_c"><input type="checkbox" class="span1" name="chk_c" <?php
                                                            if ($val_3 == '1') {
                                                                echo'checked="checked"';
                                                            } else {
                                                                echo '';
                                                            }
        ?>>C</label>
            <div class="controls">
                <input type="text" style="width:300px;" id="jwb_c" name="jwb_c" value="<?php echo $jwb_c; ?>">
                <div class="fileupload fileupload-new" data-provides="fileupload">
                    <div class="fileupload-new thumbnail" style="width: 50px; height: 50px;"><img src="<?php echo base_url() . 'images/real/' . $filegambar3; ?> "/></div>
                    <div class="fileupload-preview fileupload-exists thumbnail" style="width: 50px; height: 50px;"></div>
                    <span class="btn btn-file"><span class="fileupload-new">Select image</span><span class="fileupload-exists">Change</span><input type="file" name="image4" /></span>
                    <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="jwb_d"><input type="checkbox" class="span1" name="chk_d" <?php
                                                            if ($val_4 == '1') {
                                                                echo'checked="checked"';
                                                            } else {
                                                                echo '';
                                                            }
        ?> >D</label>
            <div class="controls">
                <input type="text" style="width:300px;" id="jwb_d" name="jwb_d" value="<?php echo $jwb_d; ?>">
                <div class="fileupload fileupload-new" data-provides="fileupload">
                    <div class="fileupload-new thumbnail" style="width: 50px; height: 50px;"><img src="<?php echo base_url() . 'images/real/' . $filegambar4; ?>" /></div>
                    <div class="fileupload-preview fileupload-exists thumbnail" style="width: 50px; height: 50px;"></div>
                    <span class="btn btn-file"><span class="fileupload-new">Select image</span><span class="fileupload-exists">Change</span><input type="file" name="image5"/></span>
                    <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
                </div>
            </div>
        </div>
        <input type="hidden" name="st" value="<?php echo $st ?>" />
        <input type="hidden" name="id" value="<?php echo $id ?>" />
        <input type="hidden" name="param" value="<?php echo $param ?>" />
        <a class="btn" href="<?php echo site_url('admin_soal/index/' . $param); ?>">Back</a>
        <button class="btn btn-primary" type="submit" value="submit" name="submit" >Save</button>
        <?php echo form_close(); ?>
    </div>
